package com.xujinchen.array;

public class ArrayDemo05 {
    public static void main(String[] args) {
        //[3][2]
        /*
        1,2  array[0]
        2,3  array[1]
        3,4  array[2]
         */
        int[][] array = {{1,2},{2,3},{3,4}};
//        printArray(array[2]);
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.println(array[i][j]);
            }

        }
    }
    public static void printArray(int[] arrays){
        for (int i = 0; i < arrays.length; i++) {
            System.out.print(arrays[i]+" ");
        }
    }
}
